package com.tjbklx1.pattern2.chap33.c01_brige;

public class HtmlMail extends MailTemplate {
	public HtmlMail(String _from, String _to, String _subject, String _context) {
		super(_from, _to, _subject, _context);
	}

	public String getContext() {
		// 超文本类型设置邮件的格式为：multipart/mixed
		// 同时对邮件进行HTML检查，是否有类似未关闭的标签
		String context = "\nContent-Type: multipart/mixed; charset= GB2312\n"+super.getContext();
		context = context + "\n邮件格式为：超文本格式";
		return context;
	}
}